/**
 * @Author: songgh
 * @Date: 2021-09-20 14:41:08
 * @LastEditors: songgh
 * @LastEditTime: 2021-09-20 15:41:08
 * @Description: typescript & vue3 示例
 */
import {
    createRouter,
    createWebHistory
} from 'vue-router'

const routerHistory = createWebHistory();

const router = createRouter({
    history: routerHistory,
    routes: [{
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: () => import('@/views/Home')
        },
        {
            path: '/example',
            component: () => import('@/views/Example')
        },
    ]
})

export default router